﻿@inherits umbraco.MacroEngines.DynamicNodeContext
@{ 
	var parent = @Model.AncestorOrSelf(1);
	if (parent != null) {
		<ul class="sfmenu sf-js-enabled sf-shadow">
		@foreach (var item in parent.Children.Where("Visible")) {
      var selected = Array.IndexOf(Model.Path.Split(','), item.Id.ToString()) >= 0 ? "current_page_item" : "";
			<li class="menu-item menu-item-type-custom menu-item-object-custom @Html.Raw(selected)">
				<a href="@item.Url">@item.Name</a>
			</li>
			}
		</ul>
	}
}
